-- GENERATED SPELL FOR [Mor'Ladim] --


function spell0_522(pUnit, Event) --@Enraging Memories,Self--
pUnit:FullCastSpellOnTarget(3547,pUnit)
pUnit:RegisterEvent('Sorts_522', 8000, 1)
end

function Sorts_522(pUnit, Event)
local choix_sorts_522 = math.random(0, 0)
if choix_sorts_522 == 0 then
pUnit:RegisterEvent('spell0_522', 1, 1)
end
end

function mob522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_522', math.random(1500, 3000), 1)
end

function mob522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(522, 1, 'mob522_Action')
RegisterUnitEvent(522, 2, 'mob522_Leave')
RegisterUnitEvent(522, 3, 'mob522_Kill')
RegisterUnitEvent(522, 4, 'mob522_Die')
